home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / hs.xml < prev    next >
Text File  |  2002-08-30  |  3KB  |  81 lines

  1. <search function="hs">
  2.   <name>HotScripts.com</name>
  3.   <description>
  4.     Search for code snippets in a multitude of programming languages. Searches all languages by default.<br/>
  5.     <div class="helpboxDescLabels">Switches:</div>
  6.       <table class="helpboxDescTable">
  7.         <tr><td>/new</td><td> - </td><td>New listings</td></tr>
  8.         <tr><td>/asp</td><td> - </td><td>ASP</td></tr>
  9.         <tr><td>/c</td><td> - </td><td>C and C++</td></tr>
  10.         <tr><td>/java</td><td> - </td><td>Java</td></tr>
  11.         <tr><td>/javascript</td><td> - </td><td>JavaScript</td></tr>
  12.         <tr><td>/php</td><td> - </td><td>PHP</td></tr>
  13.         <tr><td>/perl</td><td> - </td><td>Perl</td></tr>
  14.         <tr><td>/python</td><td> - </td><td>Python</td></tr>
  15.         <tr><td>/remotehosts</td><td> - </td><td>Remote Hosts</td></tr>
  16.         <tr><td>/tools</td><td> - </td><td>Tools and Utilities</td></tr>
  17.         <tr><td>/xml</td><td> - </td><td>XML</td></tr>
  18.       </table>
  19.     <div class="helpboxDescLabels">Example:</div>
  20.     <table class="helpboxDescTable">
  21.           <tr><td>hs parse /javascript</td></tr>
  22.       </table>
  23.   </description>
  24.   <category>Computers</category>
  25.   <link>http://www.hotscripts.com/</link>
  26.   <contributor>Monty Scroggins, Ryan Edwards, Brent Beardsley</contributor>
  27.  
  28.   <form name="hsf"
  29.         action="http://www.hotscripts.com/search/"
  30.         method="get">
  31.     <input type="hidden" name="query"/>
  32.     <input type="hidden" name="category" value=""/>
  33.     <input type="hidden" name="bool" value="AND"/>
  34.   </form>
  35.  
  36.   <script><![CDATA[
  37.     function hs(q)
  38.     {
  39.       var args = parseArgs(q, "new, asp, c, java, javascript, php, perl, python, remotehosts, tools, xml");
  40.  
  41.       if( nullArgs("hs",q) )
  42.         return false;
  43.       else if( args.switches.length == 1 )
  44.       {
  45.         switch( args.switches[0].name )
  46.         {
  47.           case "new": openSearchWindow("http://www.hotscripts.com/New/"); return false;
  48.           case "asp": document.hsf.category.value = "ASP"; break;
  49.           case "c": document.hsf.category.value = "C"; break;
  50.           case "java": document.hsf.category.value = "Java"; break;
  51.           case "javascript": document.hsf.category.value = "JavaScript"; break;
  52.           case "php": document.hsf.category.value = "PHP"; break;
  53.           case "perl": document.hsf.category.value = "Perl"; break;
  54.           case "python": document.hsf.category.value = "Python"; break;
  55.           case "remotehosts": document.hsf.category.value = "Remote_Hosts"; break;
  56.           case "tools":
  57.           case "utils": document.hsf.category.value = "Tools"; break;
  58.           case "xml": document.hsf.category.value = "XML"; break;
  59.         }
  60.         document.hsf.query.value = args.q;
  61.         submitForm(hsf);
  62.       }
  63.       else if( args.switches.length > 1 )
  64.         nullArgs("hs","?");
  65.       else
  66.       {
  67.         document.hsf.category.value = "all";
  68.         document.hsf.query.value = args.q;
  69.         submitForm(hsf);
  70.       }
  71.     }
  72.   ]]></script>
  73.  
  74.   <copyright>
  75.     Copyright (c) 2002 David Bau
  76.     Distributed under the terms of the
  77.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  78.   </copyright>
  79. </search>
  80.  
  81.